package org.example.ch02.p14;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String line=sc.nextLine().trim();
            if (line.isEmpty()){
                continue;
            }
            String[]parts=line.split("\\s+");
            if (parts.length==2){
                continue;
            }
            int a=Integer.parseInt(parts[0]);
            int b=Integer.parseInt(parts[1]);
            int sum=a+b;
            System.out.println(sum);
        }
        sc.close();
    }
}
